package com.ruoyi.modules.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.modules.mapper.TransportationCompanyCertificateMapper;
import com.ruoyi.modules.domain.TransportationCompanyCertificate;
import com.ruoyi.modules.service.ITransportationCompanyCertificateService;

/**
 * 运输许可证申报Service业务层处理
 * 
 * @author ssh
 * @date 2024-12-15
 */
@Service
public class TransportationCompanyCertificateServiceImpl implements ITransportationCompanyCertificateService 
{
    @Autowired
    private TransportationCompanyCertificateMapper transportationCompanyCertificateMapper;

    /**
     * 查询运输许可证申报
     * 
     * @param id 运输许可证申报主键
     * @return 运输许可证申报
     */
    @Override
    public TransportationCompanyCertificate selectTransportationCompanyCertificateById(String id)
    {
        return transportationCompanyCertificateMapper.selectTransportationCompanyCertificateById(id);
    }

    /**
     * 查询运输许可证申报列表
     * 
     * @param transportationCompanyCertificate 运输许可证申报
     * @return 运输许可证申报
     */
    @Override
    public List<TransportationCompanyCertificate> selectTransportationCompanyCertificateList(TransportationCompanyCertificate transportationCompanyCertificate)
    {
        return transportationCompanyCertificateMapper.selectTransportationCompanyCertificateList(transportationCompanyCertificate);
    }

    /**
     * 新增运输许可证申报
     * 
     * @param transportationCompanyCertificate 运输许可证申报
     * @return 结果
     */
    @Override
    public int insertTransportationCompanyCertificate(TransportationCompanyCertificate transportationCompanyCertificate)
    {
        transportationCompanyCertificate.setCreateTime(DateUtils.getNowDate());
        return transportationCompanyCertificateMapper.insertTransportationCompanyCertificate(transportationCompanyCertificate);
    }

    /**
     * 修改运输许可证申报
     * 
     * @param transportationCompanyCertificate 运输许可证申报
     * @return 结果
     */
    @Override
    public int updateTransportationCompanyCertificate(TransportationCompanyCertificate transportationCompanyCertificate)
    {
        transportationCompanyCertificate.setUpdateTime(DateUtils.getNowDate());
        return transportationCompanyCertificateMapper.updateTransportationCompanyCertificate(transportationCompanyCertificate);
    }

    /**
     * 批量删除运输许可证申报
     * 
     * @param ids 需要删除的运输许可证申报主键
     * @return 结果
     */
    @Override
    public int deleteTransportationCompanyCertificateByIds(String[] ids)
    {
        return transportationCompanyCertificateMapper.deleteTransportationCompanyCertificateByIds(ids);
    }

    /**
     * 删除运输许可证申报信息
     * 
     * @param id 运输许可证申报主键
     * @return 结果
     */
    @Override
    public int deleteTransportationCompanyCertificateById(String id)
    {
        return transportationCompanyCertificateMapper.deleteTransportationCompanyCertificateById(id);
    }
}
